// 标签管理
import { request } from '../utils/request'
// const BASE_URL_USER = 'http://dev.basic.lbs.p.yufeiworld.com'
// const BASE_URL_USER = 'http://dev.gateway.lbs.p.yufeiworld.com'
const BASE_URL_USER = ''
// 内容标签数据一级下拉
export const request_get_article_list = () => {
	return request({
		url: BASE_URL_USER + '/basic/tagLibrary/info/article/tags',
		method: "GET",
		header: {
			'content-Type': 'x-www-form-urlencoded;charset=UTF-8'
		}
	})
}
// 内容标签数据二级下拉
export const request_get_article_all_list = () => {
	return request({
		url: BASE_URL_USER + '/basic/tagLibrary/info/article/tags',
		method: "GET",
		header: {
			'content-Type': 'x-www-form-urlencoded;charset=UTF-8'
		}
	})
}
// 用户标签数据二级菜单
export const request_get_user_list = () => {
	return request({
		url: BASE_URL_USER + '/basic/tagLibrary/info/userList',
		method: "GET",
		header: {
			'content-Type': 'x-www-form-urlencoded;charset=UTF-8'
		}
	})
}
export type DATATAG = {
	tagIds: string, // 标签id逗号分割
	userId: number
} 
// 用户选择标签
export const request_get_user_tag = (dataTag: DATATAG) => {
	return request({
		url: BASE_URL_USER + '/basic/user/tag',
		method: "GET",
		data: dataTag,
		header: {
			'content-Type': 'x-www-form-urlencoded;charset=UTF-8'
		}
	})
}